package com.yfbao.horizon.docker.entity;

import cn.hutool.core.date.DateUtil;
import com.yfbao.horizon.docker.utils.CommonUtil;
import lombok.Data;

import java.util.Date;

@Data
public class EntityBean {

    private Long id = CommonUtil.getId();
    private Long tenantId = -1L;
    private Date createTime = DateUtil.date();
    private Date updateTime = DateUtil.date();
    private Integer version = 0;
    private Long entityId;
    private String entityType;
    private Boolean includeChild;
    private Long roleId = -1L;
    private Long orgId = -1L;
    private Long originId = -1L;
    private Long resourceId;
    private String resourceCode;
    private String resourceName;
    private String resourceIcon = "";
    private Long resourceParentId =-1L;
    private Integer resourceLevel = 0;
    private String resourcePath = "";
    private String resourceUrl = "";
    private String resourceOpenType = "";
    private Boolean resourceAdmin;
    private Boolean resourceAllowEnd = false;
    private Integer resourceSortNumber = 1;
    private String resourceAppId = "";
    private String resourceEntityFullName = "";
    private Integer resourceType;
    private Integer resourceClientType = 0;
    private String resourceDataType = "";
    private String resourcePermissionType = "";
    private Integer action =0;
    public Long resourceOrgId = -1L;
    public Long creatorId = -1L;
}
